﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using RaveEngine.Engine;
using RaveEngine.Engine.Query;

namespace RaveEngine.Controllers
{
    public class RaveDynamicController : Controller
    {
        //
        // GET: /Rave/
        [ValidateInput(false)]
        [AcceptVerbs(HttpVerbs.Post)]
        public ActionResult Index()
        {
            BaseRaveQuery query = new TranslateQuery(HttpContext.Request.InputStream);
            ViewData["Response"] = query.Execute();

            return View("~/Views/Rave/Index.aspx");
        }
    }
}
